package com.hhsjtest.segiui

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.hhsjdesign.segiui.R

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<View>(R.id.test_menu).setOnClickListener {
            startActivity(Intent(this, MenuActivity::class.java))
        }

        findViewById<RCLayout>(R.id.rclayout).setRadii(FloatArray(8).apply {
            this[0] = 0f
            this[1] = 0f

            this[2] = 150f
            this[3] = 150f

            this[4] = 100f
            this[5] = 100f

            this[6] = 200f
            this[7] = 200f
        })
    }
}